from flask import Flask
from flask_sqlalchemy import SQLAlchemy

app = Flask(__name__)
app.config['SECRET_KEY'] = 'abc123'
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:2267000140aa!@127.0.0.1:3306/myweb'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
# 建立数据库映射
db = SQLAlchemy(app)



from myweb import views, errors, commands
